package com.ny.zuoye2567.dao.service;

import com.ny.zuoye2567.dao.dao.OderDao;
import com.ny.zuoye2567.dao.dao.OrderDaoImpl;
import com.ny.zuoye2567.dao.shiti.Order;

import java.sql.SQLException;
import java.util.List;

public class OrderServiceImpl implements OrderService{
    private OderDao oderDao=new OrderDaoImpl();

    @Override
    public int insertOrder(Order order) throws SQLException, ClassNotFoundException {
        return oderDao.insertOrder(order);
    }

    @Override
    public List<Order> findAllOrders() {
        return oderDao.findAllOrders();
    }

    @Override
    public int deleteOrderByStudentName(String studentName) {
        return oderDao.deleteOrderByStudentName(studentName);
    }
}
